package Cat_Dog_abstract;

public abstract class Animal {

	private int age;
	private String name;
	
	public abstract void eat(String name);
	
	public Animal() {}
	
	public Animal(int age,String name) {
		this.age = age;
		this.name = name;
		
	}
	
	public void struct() {
		System.out.println("会呼吸");
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
